package ckw.node;

import ckw.database.model.Node;
import core.communication.message.CNodeState;
import core.exceptions.ObjectDeleteException;

public interface NodesService {

	public Node getMainNode();

	public Node addNode(Node node);

	public void deleteNode(Node node) throws ObjectDeleteException;

	public void changeNodeState(String locatorURI, CNodeState state);

	public Node getNode(String locatorURI);

	public Node updateNode(Node node);

	public void changeNodeUpToDate(String nodeUri, boolean upToDate);
}
